<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // 1.参数问题
        // 1.1 放入两个参数
        const sum = (num1,num2)=>{
            return num1+num2;
        }
        // 1.2 放入一个参数
        const power = num => {
            return num * num;
        }
        // 2.返回值的问题
        const test = ()=>{
            // 1.打印Hello World
            console.log('HelloWorld');
            // 2.打印Hello Vuejs
            console.log('Hello Vuejs');
        }
        // 2.2函数代码块中只有一个返回值一句,只要一行代码
        // const mul = (num1,num2)=>{
        //     return num1*num2;
        // }
        const mul = (num1,num2)=>num1*num2;
        console.log(mul(20,30));
    </script>
</body>
</html>